//to reset element-ui default css
.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

.el-input-number {
  width: 100% !important;
  .el-input__inner {
    text-align: left !important;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}
.el-button {
  padding: 10px 16px !important;
  [class^='el-icon-'],
  [class*=' el-icon-'] {
    margin-right: 4px;
  }
}
.el-message {
  top: 120px !important;
  left: auto !important;
  transform: translateX(0) !important;
  right: 20px;
}
.el-message--info {
  background-color: #d2e8ff;
  .el-message__content {
    color: #409eff;
  }
}
.el-table {
  thead {
    color: #606266 !important;
  }
  th {
    padding: 10px 0px !important;
  }
  td {
    padding: 8px 0px !important;
  }
}
.el-form-item__label {
  padding: 0px 10px 0px 0px !important;
}

.el-scrollbar {
  .el-scrollbar__wrap {
    overflow: auto;
  }
}
.el-select-dropdown {
  .el-scrollbar {
    .el-scrollbar__wrap {
      overflow: scroll;
    }
  }
}

/** messageBox **/
.el-message-box__btns {
  button:nth-child(2) {
    margin-right: 10px;
  }
  .el-button {
    float: right;
  }
}

//globl transition css

/*fade*/
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.28s;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}
.dialog-fade-enter-active {
  transition: all 0.3s ease;
}
.dialog-fade-leave-active {
  transition: all 0.2s ease;
}
.dialog-fade-enter {
  transform: translateY(-500px);
}
.dialog-fade-leave-active {
  transform: translateY(-500px);
}
